package com.mallcloud.mall.common.sequence.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 发号器Redis配置属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "mall.xsequence.redis")
public class SequenceRedisProperties extends BaseSequenceProperties {

	/**
	 * redis ip
	 */
	private String host = "localhost";
	/**
	 * redis port
	 */
	private int port = 6379;
	/**
	 * redis database
	 */
	private int database = 0;
	/**
	 * redis密码
	 */
	private String password = "";


}